package com.example.common

import android.app.Application
import android.content.Context

abstract class BaseApplication : Application() {

    companion object{
        private lateinit var appContext : Context

        /**
         * 获取应用上下文
         */
        @JvmStatic
        fun getAppContext():Context{
            return appContext
        }
    }

    override fun onCreate() {
        super.onCreate()
        appContext = this
    }

}